//
//  KRAlartManager.h
//  KEREN
//
//  Created by MW on 2023/3/15.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
typedef void(^changeTitleBlock)(NSString *_Nonnull title);
typedef void(^sucessBlock)(BOOL isSucess);


@interface KRAlartManager : NSObject
@property (nonatomic, strong) UIView *backView;
@property (nonatomic, strong) UIView *errorView;
@property (nonatomic, assign) CLLocationCoordinate2D location;
@property (nonatomic, assign) CGFloat longitude;
@property (nonatomic, assign) CGFloat latitude;
@property (nonatomic, copy) NSString *pointName;
//目前所在地经纬度
@property (nonatomic, assign) CGFloat currentLatitude;
@property (nonatomic, assign) CGFloat currentLongitude;

@property (nonatomic, assign) int currentIndex;
@property (copy,nonatomic) void (^sucessBlock)(BOOL isSucess);

@property (nonatomic, assign) int downCont;
@property (nonatomic, strong) UIImageView *lodingImageView;
@property (nonatomic, assign) NSInteger yearRow;
@property (nonatomic, assign) NSInteger monthRow;
@property (nonatomic, assign) NSInteger dayRow;


+ (instancetype)shareInstance;

- (void)showBLENotOpenAlert;
//通用弹窗
- (void)showTipsAlertWithTitle:(NSString *)title decTitle:(NSString *)dec cancleBtnText:(NSString *)cancletStr andOkBtnText:(NSString *)okStr sucessBlock:(sucessBlock)sucessBlock;
- (void)hidenAlartView;
//错误弹窗
- (void)showErrorAlert:(NSString *)errorStr;
- (void)showBleNotopenAlert;
-(void)showBLENotFoundDeviceAlert;
//首页消息弹窗
- (UIView *)showMessgeNoticeView;
- (void)resettingDeteRow;
//带图片的提示弹窗
- (void)showImageAlert:(NSString *)successStr ishaveBtn:(BOOL)ishaveBtn btnTitle:(NSString *)btnStr decLbl:(NSString *)dec withImageStr:(NSString *)imageStr isDown:(BOOL)isDown WithDownCount:(int)downCount sucessBlock:(sucessBlock)sucessBlock;
//pickAlerview弹窗
- (void)showPickAlertView:(NSString *)title withcurrentIndex:(int)currentIndex IscanChooseHistory:(BOOL)iscanChooseHistory changeTitleBlock:(changeTitleBlock)changeTitleBlock;
//单按钮弹窗
- (void)showTipsAlertWithTitle:(NSString *)title decTitle:(NSString *)dec andOkBtnText:(NSString *)okStr sucessBlock:(sucessBlock)sucessBlock;
//加载弹窗
- (void)showLodingAlertView:(NSString *)ttile;
//显示地理位置弹窗
- (void)showPointNavcation:(CGFloat)longitude latitude:(CGFloat)latitude pointName:(NSString *)pointName;
//自定义文字提示弹窗
- (void)showAlert:(NSString *)title;
//第一次使用app
- (void)showFirstuseApp;
//小可机器弹窗
- (void)showXKAlert;
- (void)hidenLodingImageView;
@end

NS_ASSUME_NONNULL_END
